import Vue from 'vue'
import VueRouter from 'vue-router'
import LayoutIndex from '@/layout'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: LayoutIndex,
    redirect: '/04cesium',
    name: 'Interaction04',
    meta: { title: '04Cesium图元Primitive', icon: 'el-icon-s-help' },
    children: [
      {
        path: '/04cesium',
        name: '16PolygonOutlineGeometry',
        component: () => import('@/views/04Cesium图元Primitive/16PolygonOutlineGeometry.vue'),
        meta: { title: '16PolygonOutlineGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium15',
        name: '15PolygonGeometry',
        component: () => import('@/views/04Cesium图元Primitive/15PolygonGeometry.vue'),
        meta: { title: '15PolygonGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium14',
        name: '14RectangleOutlineGeometry',
        component: () => import('@/views/04Cesium图元Primitive/14RectangleOutlineGeometry.vue'),
        meta: { title: '14RectangleOutlineGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium13',
        name: '13RectangleGeometry',
        component: () => import('@/views/04Cesium图元Primitive/13RectangleGeometry.vue'),
        meta: { title: '13RectangleGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium12',
        name: '12EllipsesoidOutlineGeometry',
        component: () => import('@/views/04Cesium图元Primitive/12EllipsesoidOutlineGeometry.vue'),
        meta: { title: '12EllipsesoidOutlineGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium11',
        name: '11EllipsesoidGeometry',
        component: () => import('@/views/04Cesium图元Primitive/11EllipsesoidGeometry.vue'),
        meta: { title: '11EllipsesoidGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium10',
        name: '10EllipseOutlineGeometry',
        component: () => import('@/views/04Cesium图元Primitive/10EllipseOutlineGeometry.vue'),
        meta: { title: '10EllipseOutlineGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium09',
        name: '09EllipseGeometry',
        component: () => import('@/views/04Cesium图元Primitive/09EllipseGeometry.vue'),
        meta: { title: '09EllipseGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium08',
        name: '08CylinderOutlineGeometry',
        component: () => import('@/views/04Cesium图元Primitive/08CylinderOutlineGeometry.vue'),
        meta: { title: '08CylinderOutlineGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium07',
        name: '07CylinderGeometry',
        component: () => import('@/views/04Cesium图元Primitive/07CylinderGeometry.vue'),
        meta: { title: '07CylinderGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium06',
        name: '06CorridorOutlineGeometry',
        component: () => import('@/views/04Cesium图元Primitive/06CorridorOutlineGeometry.vue'),
        meta: { title: '06CorridorOutlineGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium05',
        name: '05CorridorGeometry',
        component: () => import('@/views/04Cesium图元Primitive/05CorridorGeometry.vue'),
        meta: { title: '05CorridorGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium04',
        name: '04CircleOutlineGeometry',
        component: () => import('@/views/04Cesium图元Primitive/04CircleOutlineGeometry.vue'),
        meta: { title: '04CircleOutlineGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium03',
        name: '03CircleGeometry',
        component: () => import('@/views/04Cesium图元Primitive/03CircleGeometry.vue'),
        meta: { title: '03CircleGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium02',
        name: '02BoxOutlineGeometry',
        component: () => import('@/views/04Cesium图元Primitive/02BoxOutlineGeometry.vue'),
        meta: { title: '02BoxOutlineGeometry', icon: 'el-icon-s-help' }
      },
      {
        path: '/04cesium01',
        name: '01BoxGeometry',
        component: () => import('@/views/04Cesium图元Primitive/01BoxGeometry.vue'),
        meta: { title: '01BoxGeometry', icon: 'el-icon-s-help' }
      }
    ]
  },
  {
    path: '/abc04',
    component: LayoutIndex,
    redirect: '/03cesium',
    name: 'Interaction03',
    meta: { title: '03cesium材质', icon: 'el-icon-s-help' },
    children: [
      {
        path: '/03cesium',
        name: '10CustomMaterial',
        component: () => import('@/views/03cesium材质/10CustomMaterial.vue'),
        meta: { title: '10CustomMaterial', icon: 'el-icon-s-help' }
      },
      {
        path: '/03cesium09',
        name: '09PolylineDashMaterial',
        component: () => import('@/views/03cesium材质/09PolylineDashMaterial.vue'),
        meta: { title: '09PolylineDashMaterial', icon: 'el-icon-s-help' }
      },
      {
        path: '/03cesium08',
        name: '08PolylineArrowMaterial',
        component: () => import('@/views/03cesium材质/08PolylineArrowMaterial.vue'),
        meta: { title: '08PolylineArrowMaterial', icon: 'el-icon-s-help' }
      },
      {
        path: '/03cesium07',
        name: '07PolylineOutlineMaterial',
        component: () => import('@/views/03cesium材质/07PolylineOutlineMaterial.vue'),
        meta: { title: '07PolylineOutlineMaterial', icon: 'el-icon-s-help' }
      },
      {
        path: '/03cesium06',
        name: '06PolylineGlowMaterial',
        component: () => import('@/views/03cesium材质/06PolylineGlowMaterial.vue'),
        meta: { title: '06PolylineGlowMaterial', icon: 'el-icon-s-help' }
      },
      {
        path: '/03cesium05',
        name: '05GuidMaterial',
        component: () => import('@/views/03cesium材质/05GuidMaterial.vue'),
        meta: { title: '05GuidMaterial', icon: 'el-icon-s-help' }
      },
      {
        path: '/03cesium04',
        name: '04StripeMaterial',
        component: () => import('@/views/03cesium材质/04StripeMaterial.vue'),
        meta: { title: '04StripeMaterial', icon: 'el-icon-s-help' }
      },
      {
        path: '/03cesium03',
        name: '03CheckerBoardMaterial',
        component: () => import('@/views/03cesium材质/03CheckerBoardMaterial.vue'),
        meta: { title: '03CheckerBoardMaterial', icon: 'el-icon-s-help' }
      },
      {
        path: '/03cesium02',
        name: '02ImageMaterial',
        component: () => import('@/views/03cesium材质/02ImageMaterial.vue'),
        meta: { title: '02ImageMaterial', icon: 'el-icon-s-help' }
      },
      {
        path: '/03cesium01',
        name: '01ColorMetarial',
        component: () => import('@/views/03cesium材质/01ColorMetarial.vue'),
        meta: { title: '01ColorMetarial', icon: 'el-icon-s-help' }
      }
    ]
  },
  {
    path: '/abc03',
    component: LayoutIndex,
    redirect: '/02Cesium',
    name: 'Interaction',
    meta: { title: '02Cesium实体', icon: 'el-icon-s-help' },
    children: [
      {
        path: '/02Cesium',
        name: '19EntityView',
        component: () => import('@/views/02Cesium实体/19EntityView.vue'),
        meta: { title: '19EntityView', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium18',
        name: '18EntityCluster',
        component: () => import('@/views/02Cesium实体/18EntityCluster.vue'),
        meta: { title: '18EntityCluster', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium17',
        name: '17EntityCollectionOperate',
        component: () => import('@/views/02Cesium实体/17EntityCollectionOperate.vue'),
        meta: { title: '17EntityCollectionOperate', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium16',
        name: '16Wall',
        component: () => import('@/views/02Cesium实体/16Wall.vue'),
        meta: { title: '16Wall', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium15',
        name: '15Rectangle',
        component: () => import('@/views/02Cesium实体/15Rectangle.vue'),
        meta: { title: '15Rectangle', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium14',
        name: '14PolylineVolume',
        component: () => import('@/views/02Cesium实体/14PolylineVolume.vue'),
        meta: { title: '14PolylineVolume', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium13',
        name: '13Polyline',
        component: () => import('@/views/02Cesium实体/13Polyline.vue'),
        meta: { title: '13Polyline', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium12',
        name: '12Polygon',
        component: () => import('@/views/02Cesium实体/12Polygon.vue'),
        meta: { title: '12Polygon', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium11',
        name: '11Plane',
        component: () => import('@/views/02Cesium实体/11Plane.vue'),
        meta: { title: '11Plane', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium10',
        name: '10Path',
        component: () => import('@/views/02Cesium实体/10Path.vue'),
        meta: { title: '10Path', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium09',
        name: '09Model',
        component: () => import('@/views/02Cesium实体/09Model.vue'),
        meta: { title: '09Model', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium08',
        name: '08Label',
        component: () => import('@/views/02Cesium实体/08Label.vue'),
        meta: { title: '08Label', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium07',
        name: '07Ellipsoid07',
        component: () => import('@/views/02Cesium实体/07Ellipsoid.vue'),
        meta: { title: '07Ellipsoid', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium06',
        name: '06Ellipse',
        component: () => import('@/views/02Cesium实体/06Ellipse.vue'),
        meta: { title: '06Ellipse', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium05',
        name: '05Cylinder',
        component: () => import('@/views/02Cesium实体/05Cylinder.vue'),
        meta: { title: '05Cylinder', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium04',
        name: '04Corridor',
        component: () => import('@/views/02Cesium实体/04Corridor.vue'),
        meta: { title: '04Corridor', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium03',
        name: '03Box',
        component: () => import('@/views/02Cesium实体/03Box.vue'),
        meta: { title: '03Box', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium02',
        name: '02BillBoard',
        component: () => import('@/views/02Cesium实体/02BillBoard.vue'),
        meta: { title: '02BillBoard', icon: 'el-icon-s-help' }
      },
      {
        path: '/02Cesium01',
        name: '01Point',
        component: () => import('@/views/02Cesium实体/01Point.vue'),
        meta: { title: '01Point', icon: 'el-icon-s-help' }
      }
    ]
  },
  {
    path: '/abc02',
    component: LayoutIndex,
    redirect: '/Apage01',
    name: 'Interaction02',
    meta: { title: 'cesium01', icon: 'el-icon-s-help' },
    children: [
      {
        path: '/Apage01',
        name: '06ViewPerformanceWatchdog',
        component: () => import('@/views/Apage/06ViewPerformanceWatchdog.vue'),
        meta: { title: '06ViewPerformanceWatchdog', icon: 'el-icon-s-help' }
      },
      {
        path: '/Apage0105',
        name: '05ViewportInspector',
        component: () => import('@/views/Apage/05ViewportInspector.vue'),
        meta: { title: '05ViewportInspector', icon: 'el-icon-s-help' }
      },
      {
        path: '/Apage0104',
        name: '04ViewPortQuid',
        component: () => import('@/views/Apage/04ViewPortQuid.vue'),
        meta: { title: '04ViewPortQuid', icon: 'el-icon-s-help' }
      },
      {
        path: '/Apage0103',
        name: '03ViewerResolution',
        component: () => import('@/views/Apage/03ViewerResolution.vue'),
        meta: { title: '03ViewerResolution', icon: 'el-icon-s-help' }
      },
      {
        path: '/Apage0101',
        name: 'first01',
        component: () => import('@/views/Apage/AIndex01.vue'),
        meta: { title: 'first01', icon: 'el-icon-s-help' }
      },
      {
        path: '/Apage0202',
        name: 'first02',
        component: () => import('@/views/Apage/AIndex02.vue'),
        meta: { title: 'first02', icon: 'el-icon-s-help' }
      }
    ]
  },
  {
    path: '/Bpage',
    component: LayoutIndex,
    redirect: '/Bpage01',
    name: 'Interaction01',
    meta: { title: 'cesium02', icon: 'el-icon-s-help' },
    children: [
      {
        path: '/Bpage01',
        name: 'second01',
        component: () => import('@/views/Bpage/BIndex01.vue'),
        meta: { title: 'second01', icon: 'el-icon-s-help' }
      },
      {
        path: '/Bpage02',
        name: 'second02',
        component: () => import('@/views/Bpage/BIndex02.vue'),
        meta: { title: 'second02', icon: 'el-icon-s-help' }
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
